package com.cn.wanxi.util;

import com.cn.wanxi.model.CompanyModel;
import com.cn.wanxi.model.NavModel;
import com.cn.wanxi.service.CompanyService;
import com.cn.wanxi.service.ICompanyServcie;
import com.cn.wanxi.service.INavService;
import com.cn.wanxi.service.NavService;
import com.cn.wanxi.service.impl.CompanyServiceImpl;
import com.cn.wanxi.service.impl.NavServiceImpl;

import javax.servlet.http.HttpServletRequest;

public class TopFootSetDataThree {
    public static void topFootData(HttpServletRequest req) {
        ICompanyServcie icompanyService = new CompanyServiceImpl();
        CompanyModel companyModel = icompanyService.getCompanyModelForHomePage();
//        companyModel.setPhone("fasdfasd");
//        companyModel.setLogo("../img/logo_g0yv.jpg");
        req.setAttribute("companyModel", companyModel);
        INavService inavService = new NavServiceImpl();
        NavModel[] navModels = inavService.getNavModels();
        req.setAttribute("navModels", navModels);
    }
}
